<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script type="text/javascript">
    const _isFibonacci = array => {
        // 补全代码
        // 1.判断长度是否满足
        if (array.length < 3) return false;
        // 2.判断F（0）和F（1）的值
        if(array[0] === 0 && array[1] === 1){
            for(var i = 2;i<array.length;i++) {
                if(array[i] === array[i-1] + array[i-2]){
                    return true;
                }
            }
        }
        return false;
    }
</script>